package ru.arriah.common.web.action;

import java.io.*;

public class ActionMapping implements Serializable {
   protected String actionName;
   protected Class handlerType;
   protected String successTarget;
   protected String failureTarget;
   protected WebAction actionHandler;
   protected String errorMessage;
   
   public ActionMapping() {
      super();
      actionName = null;
      handlerType = null;
      successTarget = null;
      failureTarget = null;
      errorMessage = null;
   }

   public void setActionName(String actionName) {
      this.actionName = actionName;
   }

   public String getActionName() {
      return actionName;
   }

   public void setHandlerType(Class handlerType) {
      this.handlerType = handlerType;
   }

   public Class getHandlerType() {
      return handlerType;
   }

   public void setSuccessTarget(String successTarget) {
      this.successTarget = successTarget;
   }

   public String getSuccessTarget() {
      return successTarget;
   }

   public void setFailureTarget(String failureTarget) {
      this.failureTarget = failureTarget;
   }

   public String getFailureTarget() {
      return failureTarget;
   }

   public void setActionHandler(WebAction actionHandler) {
      this.actionHandler = actionHandler;
   }

   public WebAction getActionHandler() {
      return actionHandler;
   }

   public boolean isValid() {
      return true;
   }

   public String getErrorMessage() {
      return errorMessage;
   }
}
